package es.xpt.ysf.commons.track;

import java.util.List;

import es.xpt.ysf.YSFException;
import es.xpt.ysf.commons.Names;
import es.xpt.ysf.track.Track;
import es.xpt.ysf.track.TrackSearchParams;
import es.xpt.ysf.view.LocalDelegate;
import es.xpt.ysf.view.model.UserBean;

public class TrackDelegate extends LocalDelegate<TrackSession> {
	public TrackDelegate(UserBean user) {
		super(user);
	}

	public List<Track> getTracks(TrackSearchParams searchParams) throws YSFException {
		TrackSession ejb = connect(Names.TRACK);
		return ejb.searchItem(searchParams);
	}


}
